#pragma once
#include <iostream>
#include <clocale>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <string>
#include <array>
#include <vector>
#include <algorithm>
#include <memory>
#include <conio.h>
using namespace std;

class Result
{
protected:
	string result;

public:

	Result(void)
	{
		result = "";
	}

	Result(string result)
		: result(result)
	{
	}

	string GetResult() { return result; }
	void SetResult(string result) { this->result = result; }

	friend ostream & operator<<(ostream &out, const Result &r)
	{
		out << "(";
		out << r.result << ")";

		return out;
	}

	friend istream & operator>>(istream &in, Result &r)
	{
		string str;
		getline( in, str, '(');

		getline( in, r.result, ')');

		return in;
	}


	~Result(void)
	{
	}
};

